package com.ruoyi.project.cms.type.domain;

import java.util.Date;
import java.util.Objects;

/**
 * 创建公告类型实体类
 */
public class CmsType {
    private Long typeId;
    private String typeName;
    private String typeDesc;
    private String typeSort;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private String remark;

    @Override
    public String toString() {
        return "CmsType{" +
                "typeId=" + typeId +
                ", typeName='" + typeName + '\'' +
                ", typeDesc='" + typeDesc + '\'' +
                ", typeSort='" + typeSort + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CmsType cmsType = (CmsType) o;
        return Objects.equals(typeId, cmsType.typeId) &&
                Objects.equals(typeName, cmsType.typeName) &&
                Objects.equals(typeDesc, cmsType.typeDesc) &&
                Objects.equals(typeSort, cmsType.typeSort) &&
                Objects.equals(createBy, cmsType.createBy) &&
                Objects.equals(createTime, cmsType.createTime) &&
                Objects.equals(updateBy, cmsType.updateBy) &&
                Objects.equals(updateTime, cmsType.updateTime) &&
                Objects.equals(remark, cmsType.remark);
    }

    @Override
    public int hashCode() {
        return Objects.hash(typeId, typeName, typeDesc, typeSort, createBy, createTime, updateBy, updateTime, remark);
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeDesc() {
        return typeDesc;
    }

    public void setTypeDesc(String typeDesc) {
        this.typeDesc = typeDesc;
    }

    public String getTypeSort() {
        return typeSort;
    }

    public void setTypeSort(String typeSort) {
        this.typeSort = typeSort;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public CmsType() {
    }

    public CmsType(Long typeId) {
        this.typeId = typeId;
    }

    public CmsType(Long typeId, String typeName, String typeDesc, String typeSort, String createBy, Date createTime, String updateBy, Date updateTime, String remark) {
        this.typeId = typeId;
        this.typeName = typeName;
        this.typeDesc = typeDesc;
        this.typeSort = typeSort;
        this.createBy = createBy;
        this.createTime = createTime;
        this.updateBy = updateBy;
        this.updateTime = updateTime;
        this.remark = remark;
    }
}
